use  "FILEPATH\experiment 1.dta"

*no covariates (online appendix Table A15, Top Panel)
reg welfspend01 c.perceptions_standardized##i.illegalimm_white_treat
reg welf_attitudes c.perceptions_standardized##i.illegalimm_white_treat
reg poor_are_lazy c.perceptions_standardized##i.illegalimm_white_treat

*with covariates (Table 4)
reg welfspend01 c.perceptions_standardized##i.illegalimm_white_treat income indiv age partyid libcon01 education black latino asian 
reg welf_attitudes c.perceptions_standardized##i.illegalimm_white_treat income indiv age partyid libcon01 education black latino asian
reg poor_are_lazy c.perceptions_standardized##i.illegalimm_white_treat income indiv age partyid libcon01 education black latino asian 

*with covariates, non-Hispanic whites (online appendix Table A12)
reg welfspend01 c.perceptions_standardized##i.illegalimm_white_treat income indiv age partyid libcon01 education if white==1
reg welf_attitudes c.perceptions_standardized##i.illegalimm_white_treat income indiv age partyid libcon01 education if white==1
reg poor_are_lazy c.perceptions_standardized##i.illegalimm_white_treat income indiv age partyid libcon01 education if white==1

clear

use  "FILEPATH\experiment 2.dta"

*no covariates (online appendix Table A15, Bottom Panel)
reg welfspend01 c.perceptions_standardized##i.imm_native_treatment
reg welf_attitudes c.perceptions_standardized##i.imm_native_treatment
reg poor_are_lazy c.perceptions_standardized##i.imm_native_treatment

*with covariates (Table 5)
reg welfspend01 c.perceptions_standardized##i.imm_native_treatment income indiv age partyid libcon01 education black latino asian 
reg welf_attitudes c.perceptions_standardized##i.imm_native_treatment income indiv age partyid libcon01 education black latino asian 
reg poor_are_lazy c.perceptions_standardized##i.imm_native_treatment income indiv age partyid libcon01 education black latino asian 

*with covariates, non-Hispanic whites (online appendix Table A14)
reg welfspend01 c.perceptions_standardized##i.imm_native_treatment income indiv age partyid libcon01 education if white==1
reg welf_attitudes c.perceptions_standardized##i.imm_native_treatment income indiv age partyid libcon01 education if white==1
reg poor_are_lazy c.perceptions_standardized##i.imm_native_treatment income indiv age partyid libcon01 education if white==1
